<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link href="../../dep/mui/css/mui.css" rel="stylesheet" />
		<link href="../../css/style.css" rel="stylesheet" />
		<link rel="stylesheet" href="../../css/page/newOrder/newOrder.css" />
		<link rel="stylesheet" href="../../css/page/newOrder/mui.picker.min.css" />
	</head>

	<body>
		<header id="header" class="mui-bar mui-bar-nav">
			<button class="mui-action-back mui-btn mui-btn-blue mui-btn-link mui-btn-nav mui-pull-left">
		    	<span class="mui-icon mui-icon-left-nav"></span>返回
		    </button>
			<h1 class="mui-title">新增库存调拨</h1>
		</header>
		<div class="mui-content" id="mui-content">
			<ul class="mui-table-view">
				<li class="mui-table-view-cell">
					<a class="mui-navigate-right" href="javascript:;">单号<span id="code"></span></a>
				</li>
				<li class="mui-table-view-cell">
					<a class="mui-navigate-right btn" data-options='{"type":"date","beginYear":1980,"endYear":2216}' href="javascript:;">
						日期<span class="dateShow createDate" id="serialDate"></span>
					</a>
				</li>
				<li id="out_whLI" class="mui-table-view-cell">
					<a class="mui-navigate-right" href="../chioceLibrary/chioceLibrary.html">调出仓<span id="out_wh">(必填)</span></a>
				</li>
				<li id="in_whLI" class="mui-table-view-cell">
					<a class="mui-navigate-right" href="../chioceLibrary/chioceLibrary.html">调入仓<span id="in_wh">(必填)</span></a>
				</li>
				<li class="mui-table-view-cell">
					<a class="mui-navigate-right" href="../chioceOther/chioceStaff.html">调拨人<span id="staff-user">(必填)</span></a>
				</li>
			</ul>
			<div class="product-title">货品信息</div>
			<ul class="mui-table-view" id="goodsListShow">

				<li class="mui-table-view-cell" id="lastInfo">
					<div class="mui-row mui-text-center">
						<!--<div class="mui-col-sm-6 mui-col-xs-12">-->
						<p>数量总计</p>
						<p id="allNum">0</p>
						<!--	</div>-->
						<!--<div class="mui-col-sm-6 mui-col-xs-6">
		            		<p>金额合计</p>
		            		<p><span id="allPrice">0</span>元</p>
		            	</div>-->
					</div>
				</li>
			</ul>
			<ul class="mui-table-view choice">
				<li id="procuctSearch" class="mui-table-view-cell setParm">
					<span style="color: #333333;" class="mui-navigate-right">选择货品</span>
				</li>
			</ul>
			<form action="" id="subForm">
				<ul class="mui-table-view choice">
					<li class="mui-table-view-cell">
						<div class="mui-input-row">
							<label class="remarks-title">备注</label>
							<input id="remarks" type="textarea" class="remarks" placeholder="请输入内容">
						</div>
					</li>
				</ul>
				<div class="mui-button-row" id="sub-btn">
					<button type="button" class="mui-btn mui-btn-warning keep-draft">暂存</button>
					<button id="btnSubmitExamina" type="button" class="mui-btn mui-btn-primary mui-btn-sub">提交审核</button>
				</div>
			</form>
		</div>
	</body>

</html>
<script src="../../dep/seajs/3.0.0/sea.js"></script>
<script src="../../js/seajs_config.js"></script>
<script>
	seajs.use("../../js/newOrder/newAllotStockOrder")
</script>
<script id="goodsList" type="text/html">
	{{each list}}
	<li class="mui-table-view-cell production-add product" data-id="{{$index}}" data-other="localOther" data-amount="{{$value.allMoney}}">
		<a href="../chioceProduct/productDetail.html">
			<p class="goodsSerial" data-id="{{$value.goodsId}}" data-unit="{{$value.goodsUnit}}">{{$value.goodsSerial}}</p>
			<p><span class="goodsName">{{$value.goodsName}}</span></p>
			<p>
				<!--<span class="price">{{$value.goodsPrice}}</span>
	            	<span class="mui-icon mui-icon-closeempty"></span>-->
				<span class="goodsNum">{{$value.goodsBuyNum}}</span> 件
				<!--<span class="warehouse" style="display:none;" data-id="{{$value.goodsWhid}}">{{$value.goodsWhName}}</span>-->
			</p>
		</a>
		<span class="mui-icon mui-icon-trash delete-trash"></span>
	</li>
	{{/each}}
</script>

<script id="goodsList_update" type="text/html">
	{{each list}}
	<li class="mui-table-view-cell production-edit product" data-id="{{$index}}" data-other="updateOther" data-amount="{{$value.amount}}">
		<a href="../chioceProduct/productDetail.html">
			<p class="goodsSerial" data-id="{{$value.goodsId}}" data-unit="{{$value.unitCode}}">{{$value.goodsSerial}}</p>
			<p><span class="goodsName">{{$value.goodsName}}</span></p>
			<p>
				<!--<span class="price">{{$value.goodsPrice}}</span>
	            	<span class="mui-icon mui-icon-closeempty"></span>-->
				<span class="goodsNum">{{$value.unitCodeNumber}}</span> 件
				<!--  <span class="warehouse" style="display:none;" data-id="{{$value.goodsWhid}}">{{$value.goodsWhName}}</span>-->
			</p>
		</a>
		<span class="mui-icon mui-icon-trash update-trash"></span>
	</li>
	{{/each}}
</script>